package com.liu.nb.controller;


import com.liu.nb.entity.LoginLog;
import com.liu.nb.service.ILoginLogService;
import com.liu.nb.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 登录日志表 前端控制器
 * </p>
 *
 * @author liuziyi
 * @since 2021-08-31
 */
@RestController
@RequestMapping("/nb/login-log")
public class LoginLogController {
    @Autowired
    private ILoginLogService loginLogService;
    @PostMapping("/getById/{id}")
    public Result getById(@PathVariable int id){
        return Result.success(loginLogService.getById(id));
    }
}
